package model
{
	import model.notification.ContactListChangedNotification;
	
	import mx.collections.ArrayCollection;
	
	import org.servebox.foundry.model.AbstractModel;
	
	import value.ContactListTO;

	public class MainModel extends AbstractModel
	{
		//-----------------------------------------------------
		// here you can put all your application members
		// use the following templates for creating members
		
		private var _contactList : ContactListTO;
		
		public function get contactList() : ContactListTO
		{
			return _contactList;
		}
		
		public function set contactList( ar : ContactListTO ) : void
		{
			_contactList = ar;
			notifyObservers( new ContactListChangedNotification( null ) );
		}
		
		/* public function initialize ( ) : void
		{
			var fakeDatas : Array = new Array();
			fakeDatas = [
							{	name:'maria', 		age:'23', 	zipcode:'83114'	},
							{	name:'jean louis',	age:'24'					},
							{	name:'jeanine', 	age:'16'					},
							{	name:'alain',		age:'35', 	zipcode:'45120'	},
							{	name:'mike', 		age:'10', 	zipcode:'13666'	}
						];
			this.contactList = new ArrayCollection( fakeDatas );
		} */
	}
}